<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    @include('comm/layuiCommStyle')
    @include('comm/comm')
    <title>大淘客数据列表</title>
</head>
<body>



<div style="padding: 15px;">
    <blockquote class="layui-elem-quote">
        大淘客数据列表,界面要改，数据也要改
    </blockquote>
</div>

<div class="container">
    <table class="layui-table">
        <colgroup>
            <col>
            <col>
            <col>
            <col>
            <col>
            <col>
            <col>
            <col>
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>ID</th>
            <th>GoodsID</th>
            <th>Title</th>
            <th>Org_Price</th>
            <th>Price</th>
            <th>Quan_price</th>
            <th>Commission</th>
            <th>Commission_jihua</th>
            <th>Commission_queqiao</th>

        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>



</div>

<div id="pull_right">
    @{{ msg }}
    <div class="pull-right">

    </div>
</div>


<script>
    new Vue({
        el: '#pull_right',
        data: {
            msg: '<h1>菜鸟教程</h1>'
        }
    })
</script>

<div id="user_name_02"></div>
<script>
    //下面是另一种写法,模版和数据扔一块
    var User_02 = Vue.extend({
        template: '<p>@{{firstName}} @{{lastName}} age @{{age}}</p>',
        data: function(){
            return {
                firstName: 'yuxie',
                lastName: 'weiliang',
                age: 33
            }
        }
    });
    var user_02 = new User_02({data:{ age: 888888 }});//修改了age
    user_02.$mount('#user_name_02')
</script>

// 页面结果
<div>yuxie weiliang age 888888</div>


//容器
<div id="user_name_03"></div>
//模版
<template id="children-template">
    <p>@{{firstName}} @{{lastName}} age @{{age}}</p>
</template>
//js
<script>
    var User_03 = Vue.extend({// 构造器
        data: function(){
            return {
                firstName: 'yuxie',
                lastName: 'weiliang',
                age: 33
            }
        },
        template: '#children-template'//获取HTML模版
    });
    var user_03 = new User_03();// 实例化
    user_03.$mount('#user_name_03')  // 挂载到元素上
</script>

// 页面结果
<div>yuxie weiliang age 33</div>


</body>
</html>